#!/bin/sh
#desc:Dummy logevent file
#type:restricted
LOGFILE="/var/log/events.log"
tstamp=`date +%H:%M:%S`

if ! test -f "$LOGFILE"; then
	# After bootstart it should call this script as a Root
	if test `whoami` == "root"; then
		touch $LOGFILE
		chown admin:admin $LOGFILE
		chmod 0622 $LOGFILE	
	fi
fi

echo "$tstamp	$2.$1	$3 $4" >> $LOGFILE
